import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import cesium from "vite-plugin-cesium";

// https://vite.dev/config/
export default defineConfig({
	plugins: [vue(), cesium()],
	server: {
		host: "0.0.0.0",
		proxy: {
			"/v1": {
				target: "http://10.1.23.88:11434/v1",
				changeOrigin: true,
				ws: true,
				rewrite: (path) => path.replace(/^\/v1/, ""),
			},
		},
	},
});
